<?php
namespace Api\Controller;
use Common\Controller\AppframeController;

class DuanxinController extends AppframeController {
	
	
	function _initialize() {
		parent::_initialize();

	
	}
	public function send_code(){



		$code = rand(100000,999999);
		$data["code"]=(string)$code;



		session("code",$code);
		session("phone",I('get.phone'));


		$s=send_message(I('get.phone'),"SMS_77310004",$data);

		dump($s);






	}
	

}